package com.example.consumer.controller;

import com.example.imterface.service.UserService;
import com.example.imterface.vo.ResultVO;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: banban
 * @Desctription: TODO
 * @Date: Created in 2023/12/8 16:56
 * @Version: 1.0
 */
@RestController
public class UserServiceController {

    @Resource
    private UserService userService;
    @GetMapping("/getUserById/{id}")
    public ResultVO getUserById(@PathVariable(value = "id",required = true)Integer id){
        return userService.getUserById(id);
    }

}
